package xyz.whiteblue.core;

import xyz.whiteblue.interceptor.Interceptor;

import java.lang.reflect.Method;

/**
 * Created by WhiteBlue on 15/6/14.
 */
public class Action {
    private Method method;
    private ActionType[] methodType;
    private Class<? extends Interceptor>[] interceptor;

    public Action(Method method, ActionType[] methodType, Class[] interceptor) {
        this.method = method;
        this.methodType = methodType;
        this.interceptor = interceptor;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public ActionType[] getMethodType() {
        return methodType;
    }

    public void setMethodType(ActionType[] methodType) {
        this.methodType = methodType;
    }

    public Class[] getInterceptor() {
        return interceptor;
    }

}

